<?php

namespace api\modules\backend\models;

use Yii;
use \yii\db\ActiveRecord;

/**
 * Journey Guide Model
 *
 * @author Fong <xiaofeng.zhang@suppernovachina.com>
 */
class JourneyGuide extends ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%journey_guide}}';
    }

    /**
     * @inheritdoc
     */
    public static function primaryKey()
    {
        return ['journey_guide_id'];
    }

    /**
     * Define rules for validation
     */
    public function rules()
    {
        return [
            [['journey_id', 'guide_id', 'cost'], 'required'],
            [['journey_id', 'guide_id'], 'integer'],
            [['cost'], 'double'],
        ];
    }
}
